package com.swsc.solarverse.dao.entity.analysis;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.swsc.solarverse.dao.entity.base.AssignBaseLongIdDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("solar_string_efficiency_day")
public class StringEfficiencyDayDO extends AssignBaseLongIdDO {


    @TableField("tenant_no")
    private Integer tenantNo;

    @TableField("organ_no")
    private Integer organNo;

    /**
     * 上级设备id(汇流箱)
     */
    @TableField("device_pid")
    private Long devicePid;

    /**
     * 设备id
     */
    @TableField("device_id")
    private Long deviceId;

    @TableField("device_code")
    private String deviceCode;

    @TableField("device_name")
    private String deviceName;

    /**
     * 年
     */
    @TableField("year")
    private Short year;

    /**
     * 月
     */
    @TableField("month")
    private Byte month;

    /**
     * 月
     */
    @TableField("day")
    private Byte day;

    /**
     * 能效
     */
    @TableField("efficiency")
    private Double efficiency;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    public StringEfficiencyDayDO(){}
    public StringEfficiencyDayDO(Integer tenantNo,
                                 Integer organNo,
                                 Long devicePid,
                                 Long deviceId,
                                 String deviceName,
                                 Short year,
                                 Byte month,
                                 Byte day,
                                 Double efficiency) {
        this.tenantNo = tenantNo;
        this.organNo = organNo;
        this.devicePid = devicePid;
        this.deviceId = deviceId;
        this.deviceName = deviceName;
        this.year = year;
        this.month = month;
        this.day = day;
        this.efficiency = efficiency;
    }
}
